<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <script>
    // 外层循环100-1000
    for (var i = 100; i <= 1000; i++) {
      // 如果这个数能被3和5整除 输出即可
      if (i % 3 == 0 && i % 5 == 0) {
        document.write(i+"<br/>")
      }
    }
  </script>
</body>

</html>